package com.atguigu.gmall.user.client.feign;

import com.atguigu.gmall.model.user.UserAddress;
import com.atguigu.gmall.user.client.feign.fallback.UserFeignClientFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author wk
 * @create 2021-09-10 20:00
 */
@Service
@FeignClient(value = "service-user", fallback = UserFeignClientFallBack.class)
public interface UserFeignClient {
    // 根据用户id查询用户地址列表
    @GetMapping("/api/user/passport/findUserAddressList")
    List<UserAddress> findUserAddressList(); // HttpServletRequest request可以省略
}
